<%--
  Created by IntelliJ IDEA.
  User: xu
  Date: 2019/12/17
  Time: 21:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无厌组</title>
    <link rel="stylesheet" type="text/css" href="css/reset.css"/>
    <script type="text/javascript" src="js/jquery-3.4.1.js"></script>
    <script type="text/javascript" src="js/js_z.js"></script>
    <link rel="stylesheet" type="text/css" href="plugins/FlexSlider/flexslider.css">
    <script type="text/javascript" src="plugins/FlexSlider/jquery.flexslider.js"></script>
    <link rel="stylesheet" type="text/css" href="css/thems.css">
    <link rel="stylesheet" type="text/css" href="css/responsive.css">
    <script language="javascript">
        $(function () {

            <c:if test="${sessionScope.currUser!=null}" >
                var uname = "${sessionScope.currUser.username}";

              //alert(uname);
                $("#ss").text("欢迎"+uname);
                $("#dl").hide();
                $("#zc").hide();
            </c:if>
            <c:if test="${sessionScope.currUser==null}" >
               // alert("5678");
                $("#ss").text("未登录请登录");
            </c:if>
        });
        $(window).load(function() {
            $('.flexslider').flexslider({
                animation: "slide"
            });
            var i_h=$('.banner .tu img').height();
            $('.f_sq .f_sqm').css({height:i_h+'px',top:-i_h+'px'});

        });

        $(function () {
            $(".clearfix li").click(function () {
                $(this).siblings('li').removeClass('now');  // 删除其他兄弟元素的样式
                $(this).addClass('now');                            // 添加当前元素的样式
            });
        })
    </script>
</head>
<body>
<!--头部-->
<div class="header i_bg_a">
    <div style="width: 100%;">
        <button class="btn1" id="dl" ><a href="login.jsp" target="_parent"><span >登录</span></a></button>
        <button class="btn1" id="zc" ><a href="register.jsp" target="_parent"><span >注册</span></a></button>
        <button class="btn1" id="ss" ><a href="login.jsp" target="_parent"><span >未登录</span></a></button>
    </div>
    <div class="head clearfix">
        <div class="logo"><a href="index.jsp"><img src="images/logo.png" alt="无厌组"/></a></div>
    </div>
    <div class="space_hx">&nbsp;</div>
    <div class="nav_m">
        <div class="n_icon">&nbsp;导航栏</div>
        <ul class="nav clearfix">
            <li ><a href="index.jsp" target="toolFrame">首页</a></li>
            <li>
                <a href="invest.jsp" target="toolFrame">我要投资</a>
            </li>
            <li><a href="/checkBorrow" target="toolFrame">我要借款</a></li>
            <li><a href="person.jsp" target="toolFrame">个人中心</a></li>
            <li><a href="index.jsp" target="toolFrame">新手指引</a></li>
            <li><a href="index.jsp" target="toolFrame">关于我们</a></li>
        </ul>
    </div>
</div>
</body>
</html>
